[IN PROGRESS] Integration/Mapping
/integration/:id/mapping/entities
Returns the entities a mapping value can be set on for one integration, as { value, label } option lists per level, for the per-integration mapping grid’s entity pickers. Use it to find valid entity_ids before calling POST /v1/integration/{id}/mapping/apply.
- Permission:
ad_stack.view; the integration must be available to the caller, otherwise 404. - An entity is offered when it is within the integration’s reach (the owner organisation’s tree, or every organisation for a core integration owned by organisation 0), so units can be mapped before the integration is added to their stack, or it already holds a mapping row for the integration, or (publishers, ad stacks, ad units) it is on an ad stack that includes the integration.
- Draft entities are included; archived ones (status below 0) are not. An ad unit needs a live publisher.
- Restricted (non-core) callers only get entities in their own organisation tree.
- Each list is sorted by label. Labels: organisation name, publisher domain, ad stack name, and
domain · unit labelfor ad units (falling back to the unit code, thenAd unit). Ad stack labels can be null for unnamed stacks. - The integration level needs no options (its
entity_idis null), so it isn’t listed. - Lists are not paginated.
GET
/integration/:id/mapping/entities
Authorizations
Path Parameters
Query Parameters
Optional publisher uid. When given, the integration is looked up among those available to this publisher's organisation (and its parents) instead of the caller's own. The publisher must exist and not be archived; a restricted (non-core) caller may only pass a publisher of their own organisation, otherwise 404 Not Found.
Required range:
x >= 1/integration/:id/mapping/entities